package com.vf.admin.client.service.impl;

import com.vf.admin.miaodong.dao.ZhidingDao;
import com.vf.admin.miaodong.entity.Zhiding;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ZhidingServiceImpl {

    @Autowired
    private ZhidingDao zhidingDao;

    /**
     * banner新增
     *
     * @return
     */
    public void add(Zhiding param) {

        zhidingDao.add(param);
    }

    public void del(Integer tengxuncode, Integer totengxuncode) {

        zhidingDao.del(tengxuncode, totengxuncode);
    }

    public List<Zhiding> listByUserId(Integer tengxuncode) {
        List<Zhiding> list = zhidingDao.listByUserId(tengxuncode);

        return list;
    }

}
